//
//  GQHttpRequest.m
//  TingMusic
//
//  Created by sunny on 16/4/23.
//  Copyright © 2016年 sunny. All rights reserved.
//

#import "GQHttpRequest.h"

@implementation GQHttpRequest
-(AFHTTPSessionManager *)manager
{
    if (_manager == nil) {
        _manager = [AFHTTPSessionManager manager];
    }
    return _manager;
}

+ (nullable NSURLSessionDataTask *)GET:(NSString *)URLString parameters:(id)parameters progress:(void (^)(NSProgress * _Nonnull))downloadProgress success:(void (^)(NSURLSessionDataTask * _Nonnull, id _Nullable))success failure:(void (^)(NSURLSessionDataTask * _Nullable, NSError * _Nonnull))failure
{
    GQHttpRequest *httpRequest = [[GQHttpRequest alloc]init];
    
    
    return [httpRequest.manager GET:URLString parameters:parameters progress:nil success:success failure:failure];
    
}

@end
